Add support for Google Gemini#62
Closed
zhangzhenxiang666 wants to merge 4 commits intorellfy:masterfrom
zhangzhenxiang666:master
Closed
Add support for Google Gemini#62zhangzhenxiang666 wants to merge 4 commits intorellfy:masterfrom zhangzhenxiang666:master
zhangzhenxiang666 wants to merge 4 commits intorellfy:masterfrom
zhangzhenxiang666:master
Conversation
added 4 commits
April 29, 2025 23:23
- 重构了聊天模块的代码结构,使其更加清晰和模块化 - 添加了对工具调用的支持,使AI可以调用外部工具来完成任务 - 更新了示例代码,展示了如何使用新的工具调用功能 - 引入了新的Content类型来处理消息内容,提高了代码的灵活性
- 移除 .editorconfig 文件中对 YAML 文件的缩进设置 - 删除 examples/chat_tools.rs 文件 - 在 src/chat/modules.rs 中为 ChatCompletionMessage 的 content 字段添加 serde 注解 - 删除 test_data/file_upload_test1.jsonl 文件
- 在 utils.rs 文件的 forward_deserialized_chat_response_stream 函数中, 优化了反序列化失败时的日志输出。 - 新增了 JSON 数据内容和错误信息的详细日志,便于排查问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapt Gemini using serde attribute macros